﻿using System;

namespace Program3
{
    class Program3
    {
        static void Main(string[] args)
        {
            int[][] arr=new int[99][];
            for(int i = 0; i < 99; i++)
            {
                arr[i] = new int[2];
                arr[i][0] = i + 2;
                arr[i][1] = 0;
            }
            for(int i = 2; i <= 10; i++)
            {
                int j = 2;
                while (i * j <= 100) {arr[i*j - 2][1] = 1; j++; }   
            }
            for(int i = 0; i < 99; i++)
            {
                if (arr[i][1] == 0)
                {
                    Console.Write(arr[i][0] + " ");
                }
            }
        }
    }
}
